-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[test] Test event emit when user withdraw fund's balance #170
Conversation
hey @DiegoB1911 could you please merge your code with the latest changes in dev and fix the conflicts ? |
Sure, I'm working on it |
contracts/tests/test_fund.cairo
Outdated
// approve | ||
cheat_caller_address(token_address, FUND_MANAGER(), CheatSpan::TargetCalls(1)); | ||
token_dispatcher.approve(contract_address, goal); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that you create the setup_donation method to avoid to repeat code but in this case please leave it ass the original
Exc work Diego @DiegoB1911 some changes tkssss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Pull Request
Changes description
This PR introduces a test to verify that the correct event is emitted when the withdraw function is called
Current output
Time spent breakdown
Give a breakdown on the time you used to solve the issue you are closing.
Comments
Any other details you might want to share.